package cn.sc.allinpay.allfavour.module.printer;

import com.landicorp.android.eptapi.device.Printer.Format;

/**
 * 字体大小样式
 * author：pany
 * on 2017/11/9 10:40
 */
public class FormatStyle {

    public static Format createSmallFont() {
        Format format = new Format();
        format.setHzSize(Format.HZ_DOT16x16);
        format.setHzScale(Format.HZ_SC1x1);
        format.setAscSize(Format.ASC_DOT16x8);
        format.setAscScale(Format.ASC_SC1x1);
        return format;
    }

    public static Format createNormalFont() {
        Format format = new Format();
        format.setAscSize(Format.ASC_DOT24x12);
        format.setAscScale(Format.ASC_SC1x1);
        format.setHzSize(Format.HZ_DOT24x24);
        format.setHzScale(Format.HZ_SC1x1);
        return format;
    }

    public static Format createLargeFont() {
        Format format = new Format();
        format.setHzScale(Format.HZ_SC2x2);
        format.setHzSize(Format.HZ_DOT16x16);
        format.setAscScale(Format.ASC_SC2x2);
        format.setAscSize(Format.ASC_DOT16x8);
        return format;
    }


}
